package communicationClasses;

import java.io.Serializable;
import java.util.Vector;

import bankingSystemServer.AccountInfo;

/**
 * A generic server reply which specifically responds to TransactionRequest,
 * LoginRequest and TransferRequest requests.
 */
public class TransactionReply implements Serializable {
	private boolean result;
	private Vector<AccountInfo> accounts;

	public TransactionReply(boolean result, Vector<AccountInfo> accounts) {
		this.result = result;
		this.accounts = accounts;
	}

	public boolean getResult() {
		return result;
	}
	
	public Vector<AccountInfo> getAccounts(){
		return accounts;
	}
}
